package com.lambda.demo.stream;

import com.lambda.demo.models.AuthorsData;

public class StreamAnyMatchTest {
  public static void main(String[] args) {
    AuthorsData.getAuthors().stream()
      .filter(a -> a.getAge() > 100)
      .findAny()
      .ifPresent(a -> System.out.println(a.getName()));
  }
}
